package cn.edu.cqut.test1;

public class Student extends Person {
	private String no;
	private String major;
	
	public Student(String name, int age)
	{
		super(name, age);
//		System.out.println("Student::Student()");
	}
	
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public void showInfo()
	{
		super.showInfo();
		System.out.println("学号："+no+", 专业："+major);
	}
}
